<extend name="Public/base" />
<block name="style">
    <link href="__STATIC__/iCheck/skins/flat/green.css" rel="stylesheet">
</block>
<block name="body">

    <div class="right_col" role="main">
        <div class="">



            <div class="page-title">
                <div class="title_left">
                    <h3>{$meta_title} <small>Some examples to get you started</small></h3>
                </div>

                <div class="title_right">
                    <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
                        <div class="input-group">
                            <input type="text" class="form-control" placeholder="Search for...">
                            <span class="input-group-btn">
                                <button class="btn btn-default" type="button">Go!</button>
                            </span>
                        </div>
                    </div>
                </div>
            </div>

            <div class="clearfix"></div>
           




            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                    <div class="x_title">
                        <h2>创建菜单 <small>Create menu</small></h2>

                        <ul class="nav navbar-right panel_toolbox">
                            <li class="">
                                <a href="{:U('AuthGroup/add',array('pid'=>$pid))}"><button type="button" class="btn btn-success"><i class="fa fa-edit"></i>&nbsp;添加</button></a>
                            </li>  
                        </ul>
                        <div class="clearfix"></div>
                    </div>


                    <div class="x_content">

<form class="ids">
                        <div class="table-responsive">
                             <table class="table table-striped jambo_table bulk_action">         <thead>
                                            <tr>
                                         
                                                <th>用户组</th>
                                                <th>描述</th>
                                                <th>授权</th>
                                                <th>状态</th>
                                             
                                                <th></th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            
                                         <volist name="_list" id="vo">   
                                            <tr class="del_common_{$vo.id}">
                                                
                                                <td><a href="{:U('AuthGroup/edit?id='.$vo['id'])}">{$vo.title}</a></td>
                                                <td>{:mb_strimwidth($vo['description'],0,60,"...","utf-8")}</td>
                                                <td><a href="{:U('AuthGroup/access?group_name='.$vo['title'].'&group_id='.$vo['id'])}" class="btn btn-xs btn-primary">访问授权</a>
			                          </td>
                                                <td>{$vo.status_text}</td>
                                                <td>
                                                <a href="{:U('AuthGroup/edit',array('id'=>$vo['id']))}" class="btn btn-info btn-xs">编辑</a>
                                               <a href="{:U('AuthGroup/del',array('id'=>$vo['id']))}" class='btn btn-danger btn-xs  del_common_tr'>删除</a>                                                       
                                             
                                            </tr>
                                         </volist>   
                                        </tbody>
                                    </table>
                        </div>
</form>


                        <nav>
                            <ul class="pagination">
                                {$_page}
                            </ul>
                        </nav>          
                    </div>    
                </div>   
            </div>
            
            
             <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                    <div class="x_title">
                        <h2>搜索条件</h2>
                        <ul class="nav navbar-right panel_toolbox">
                            <li><a class="collapse-link"><i class="fa fa-chevron-down"></i></a>
                            </li>

                            <li><a class="close-link"><i class="fa fa-close"></i></a>
                            </li>
                        </ul>
                        <div class="clearfix"></div>
                    </div>


                    <div class="x_content" style='display: none;'>
                        <div class="col-md-2 col-sm-12 col-xs-12 form-group">
                            <input type="text" placeholder=".col-md-3" class="form-control">
                        </div> 
                        <div class="col-md-2 col-sm-12 col-xs-12 form-group">
                            <input type="text" placeholder=".col-md-3" class="form-control">
                        </div>
                        <div class="col-md-2 col-sm-12 col-xs-12 form-group">
                            <input type="text" placeholder=".col-md-3" class="form-control">
                        </div>
                        <div class="col-md-2 col-sm-12 col-xs-12 form-group">
                            <select  class="form-control"></select>
                        </div> 

                        <div class="col-md-1 col-sm-12 col-xs-12 form-group">
                            <button type="button" class="btn btn-success">搜索</button>
                        </div>  

                    </div>    


                </div>
            </div>
            
            
            
            
        </div>
    </div>
</div>
</block>
<block name="script">
    <script src="__STATIC__/iCheck/icheck.min.js"></script>
</block>